+2005-06-14 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from gtk-2-6:
+
+ Fix #302087:
+
+ * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
+ "selection-changed" and do the normal housekeeping even if we are
+ in SAVE mode and there is nothing selected. We didn't emit that
+ signal if we were in SAVE mode and unselect_all() got called.
+ (gtk_file_chooser_default_unselect_all): Call
+ pending_select_paths_free() so that we cancel any asynchronous
+ selections.
+ (gtk_file_chooser_default_set_current_name): Likewise.
+
2005-06-14 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6:
+2005-06-14 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from gtk-2-6:
+
+ Fix #302087:
+
+ * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
+ "selection-changed" and do the normal housekeeping even if we are
+ in SAVE mode and there is nothing selected. We didn't emit that
+ signal if we were in SAVE mode and unselect_all() got called.
+ (gtk_file_chooser_default_unselect_all): Call
+ pending_select_paths_free() so that we cancel any asynchronous
+ selections.
+ (gtk_file_chooser_default_set_current_name): Likewise.
+
2005-06-14 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6:
+2005-06-14 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from gtk-2-6:
+
+ Fix #302087:
+
+ * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
+ "selection-changed" and do the normal housekeeping even if we are
+ in SAVE mode and there is nothing selected. We didn't emit that
+ signal if we were in SAVE mode and unselect_all() got called.
+ (gtk_file_chooser_default_unselect_all): Call
+ pending_select_paths_free() so that we cancel any asynchronous
+ selections.
+ (gtk_file_chooser_default_set_current_name): Likewise.
+
2005-06-14 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6:
g_return_if_fail (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE
|| impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER);
+ pending_select_paths_free (impl);
_gtk_file_chooser_entry_set_file_part (GTK_FILE_CHOOSER_ENTRY (impl->save_file_name_entry), name);
}
GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (impl->browse_files_tree_view));
gtk_tree_selection_unselect_all (selection);
+ pending_select_paths_free (impl);
}
/* Checks whether the filename entry for the Save modes contains a well-formed filename.
g_assert (!impl->select_multiple);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (impl->browse_files_tree_view));
if (!gtk_tree_selection_get_selected (selection, NULL, &iter))
- return;
+ goto out; /* normal processing */
gtk_tree_model_sort_convert_iter_to_child_iter (impl->sort_model,
&child_iter,
return; /* We are on the editable row for New Folder */
}
+ out:
+
update_chooser_entry (impl);
check_preview_change (impl);
bookmarks_check_add_sensitivity (impl);